/**
 * Author@ Cheng Feitian
 * Date: 2021-3-23
 * Description: struct 和 class的区别
 * struct 的默认权限是公有
 * class 的默认权限是私有
 */

#include <algorithm>
#include <iostream>
#include <string>

using namespace std;
const int maxn = 1024;

class C1
{
	int  m_A; //默认是私有权限
};

struct C2
{
	int m_A;  //默认是公共权限
};

int main() {

	C1 c1;
	//c1.m_A = 10; //错误，访问权限是私有

	C2 c2;
	c2.m_A = 10; //正确，访问权限是公共


	return 0;
}
